Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​Extensions.​Options.​IOptionsSnapshot<​TOptions>
Assembly: Microsoft.Extensions.Options
Implemented Interfaces
Used to access the value of <typeparamref name="TOptions" /> for the lifetime of a request.
Methods
TOptions
Get​(string name)
Returns a configured <typeparamref name="TOptions" /> instance with the given <paramref name="name" /> .
Returns The <typeparamref name="TOptions" /> instance that matches the given <paramref name="name" /> .
name
The name of the <typeparamref name="TOptions" /> instance. If <see langword="null" /> , <see cref="F:Microsoft.Extensions.Options.Options.DefaultName" /> , which is the empty string, is used.